package com.njlime.sys.entities;

import com.njlime.core.base.entities.BaseEntityPlus;
import com.njlime.core.web.validation.RegexType;
import com.njlime.core.web.validation.annotation.Validate;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 权限实体
 * Created by Dean on 2017-7-18.
 */
@Entity
@Table(name = "t_menu")
public class Menu extends BaseEntityPlus {
    private String parent_ids; //父ID串
    @Validate(description = "父级菜单", nullable = false,regexType= RegexType.NUMBER)
    private Integer parent_id; //父ID
    @Validate(description = "菜单名称", nullable = false)
    private String name; //菜单名称
    private Integer sort; //菜单排序
    private String template; //菜单模板
    private String url; //菜单链接
    private String icon; //菜单icon
    private String icon_hover; //菜单点击后icon
    private String permission; //菜单权限
    @Validate(description = "是否展示", nullable = false)
    private Integer is_show; //是否展示（1是0否）
    private Integer status; //状态 （1启用 0禁用）

    public String getParent_ids() {
        return parent_ids;
    }

    public void setParent_ids(String parent_ids) {
        this.parent_ids = parent_ids;
    }

    public Integer getParent_id() {
        return parent_id;
    }

    public void setParent_id(Integer parent_id) {
        this.parent_id = parent_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getIcon_hover() {
        return icon_hover;
    }

    public void setIcon_hover(String icon_hover) {
        this.icon_hover = icon_hover;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public Integer getIs_show() {
        return is_show;
    }

    public void setIs_show(Integer is_show) {
        this.is_show = is_show;
    }

    public String getTemplate() {
        return template;
    }

    public void setTemplate(String template) {
        this.template = template;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
